<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>综合练习</title>
    <style>
        body {
            font: 12px "simhei", Arial, Helvetica, sans-serif;
            color: #666;
            margin: 0px;
            padding: 0px;
            background-color: #f5f5f5;
        }
        .d1 {
            width: 198px;
            height: 233px;
            margin-right: 5.19px;
            background: #E8E8E8;
            box-sizing: border-box;
            text-align: center;
        }
        .p1{
            margin-bottom: 6px;
            font-size: 12px;
            font-weight: lighter;
            color: #000;
        }
        .p2{
            margin-top: 6px;
            margin-bottom: 6px;
            font-size: 12px;
            font-weight: bold;
            color: #0AA1ED;
        }
        .p3{
            width: 100px;
            height: 24px;
            line-height: 24px;
            font-size: 24px;
            text-align: center;
            vertical-align: middle;
            cursor: pointer;
            font-size: 12px;
            margin: 0px auto;
        }
        .p3{
            background-color: #0aa1ed;
            border-radius: 2px;
        }
        p>a{
            text-decoration: none;
            /*
            修改为块级元素后需要单独设置居中
            上级元素div的text-align只会对行内元素或行内块元素生效
            display: block;
            margin: 0 auto;
            */
            display: inline-block;
            width: 100px;
            height: 24px;
            color: white;
        }
    </style>
</head>
<body>
    <center>
        <table>
            <tr>
                <td>
                    <div>
                        <div>
                        <span>
                        <img src="http://doc.canglaoshi.org/tstore_v1/images/itemCat/computer_icon1.png" alt="">
                        电脑,办公/1F
                        </span>
                        </div>
                        <div>
                        <p>电脑整机</p>
                        <ul>
                            <li><a href="#">笔记本</a></li>
                            <li><a href="#">游戏机</a></li>
                            <li><a href="#">台式机</a></li>
                            <li><a href="#">一体机</a></li>
                            <li><a href="#">服务器</a></li>
                            <li><a href="#">联想</a></li>
                        </ul>
                        <p>电脑配件</p>
                        <ul>
                            <li><a href="#">CPU</a></li>
                            <li><a href="#">SSD硬盘</a></li>
                            <li><a href="#">显示器</a></li>
                            <li><a href="#">显卡</a></li>
                            <li><a href="#">组装电脑</a></li>
                            <li><a href="#">机箱</a></li>
                        </ul>
                        <p>外设/游戏</p>
                        <ul>
                            <li><a href="#">键盘</a></li>
                            <li><a href="#">鼠标</a></li>
                            <li><a href="#">U盘</a></li>
                            <li><a href="#">移动硬盘</a></li>
                            <li><a href="#">游戏设备</a></li>
                            <li><a href="#">智能单车</a></li>
                        </ul>
                    </div>
                </div>
                </td>
                <td>
                    <div class="d1">
                        <img src="http://doc.canglaoshi.org/tstore_v1/images/itemCat/study_computer_img3.png" alt="">
                        <p class="p1">戴尔(DELL)XPS13-9360-R1609 13.3英寸微边框笔记本电脑</p>
                        <p class="p2">￥4600.00</p>
                        <p class="p3"><a href="product_details.html">查看详情</a></p>
                    </div>
                </td>
                <td>
                    <div class="d1">
                        <img src="http://doc.canglaoshi.org/tstore_v1/images/itemCat/study_computer_img4.png" alt="">
                        <p class="p1">14.8mm超轻薄笔记本电脑 航海王版 13.3英寸微边框笔记本电脑</p>
                        <p class="p2">￥5600.00</p>
                        <p class="p3"><a href="product_details.html">查看详情</a></p>
                    </div>
                </td>
                <td>
                    <div class="d1">
                        <img src="http://doc.canglaoshi.org/tstore_v1/images/itemCat/study_computer_img3.png" alt="">
                        <p class="p1">联想(Lenovo) YOGA900 多彩版 13.3英寸微边框笔记本电脑</p>
                        <p class="p2">￥6600.00</p>
                        <p class="p3"><a href="product_details.html">查看详情</a></p>
                    </div>
                </td>
            </tr>
        </table>
    </center>
</body>
</html>